package com.orphan.audit.po;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.baomidou.mybatisplus.annotation.TableField;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * 
 * </p>
 *
 * @author wdn
 * @since 2021-07-15
 */
@Data
@EqualsAndHashCode(callSuper = true)
@TableName("t_goods_info")
public class GoodsInfo extends Model {

    private static final long serialVersionUID = 1L;
    //主键ID
    @TableId(value = "t_id", type = IdType.AUTO)
    private Integer tId;
    //订单外键
    private Integer fkGoodsOrder;
    //商品类型
    private String tType;
    //商品名
    @TableField("t_goodsName")
    private String tGoodsname;
    //商品单价
    private Float tPrice;
    //商品数量
    @TableField("t_goodsNum")
    private Integer tGoodsnum;
    //商品状态
    private Integer tStatus;
    //对应的订单对象
    @TableField(exist = false)
    private OrderCheck orderCheck;




}
